#ifndef LIBTORRENT_PIECE_H
#define LIBTORRENT_PIECE_H

namespace torrent {
class Piece {
public:
	Piece() : m_index(-1),
			 m_offset(0),
			 m_length(0) {}
	int& index() { return m_index; }
	unsigned int& length() { return m_length; }
private:
	int m_index;
	unsigned int m_offset;
	unsigned int m_length;
};
}



#endif // LIBTORRENT_PIECE_H
